﻿@{
    ViewBag.Title = "会员积分";
}
<script src="~/Scripts/jquery.hiMallDatagrid.js"></script>
<script src="~/Scripts/jquery.himallLinkage.nocreate.js"></script>
<script src="~/Scripts/jquery.placeholder.min.js"></script>
<script src="~/Scripts/bootstrap.autocomplete.js"></script>
<link rel="stylesheet" type="text/css" href="~/Content/bootstrap-datetimepicker.min.css">
<script type="text/javascript" src="~/Scripts/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="~/Scripts/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript">
    $(function () {
        $(".start_datetime").datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            autoclose: true,
            weekStart: 1,
            minView: 2
        });
        $(".end_datetime").datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            autoclose: true,
            weekStart: 1,
            minView: 2
        });
        $(".start_datetime").click(function () {
            $('.end_datetime').datetimepicker('show');
        });
        $(".end_datetime").click(function () {
            $('.start_datetime').datetimepicker('show');
        });

        $('.start_datetime').on('changeDate', function () {
            if ($(".end_datetime").val()) {
                if ($(".start_datetime").val() > $(".end_datetime").val()) {
                    $('.end_datetime').val($(".start_datetime").val());
                }
            }

            $('.end_datetime').datetimepicker('setStartDate', $(".start_datetime").val());
        });


    });
</script>
<div class="container">
    <ul class="nav nav-tabs-custom clearfix">
        <strong>会员</strong>
        <li class="active"><a href="./Search">积分查询</a></li>
        <li>@Html.ActionLink("积分管理", "Management", new { area = "admin" })</li>
        <em class="primary-btn">
            <span class="glyphicon glyphicon-question-sign"></span>
            <div class="primary">
                <h3>温馨提示：</h3>
                <span>*</span><p>平台的会员积分</p>
            </div>
        </em>
    </ul>

    <div class="search-box only-line">
        <form class="custom-inline" role="form">
            <div class="form-group">
                <label class="label-inline" for="">会员名</label>
                <input class="form-control input-ssm" type="text" id="autoTextBox" autocomplete="off">
            </div>
            <div class="form-group">
                <label class="label-inline" for="">注册时间</label>
                <input id="inputStartDate" class="form-control input-ssm start_datetime" type="text" >
            </div>
            <div class="form-group">
                <label class="label-inline" for="">-</label>
                <input id="inputEndDate" class="form-control input-ssm end_datetime" type="text" >
            </div>
            <button type="button" id="searchBtn" class="btn btn-primary btn-sm">搜 索</button>
        </form>
    </div>
    <table class="table" id="list"></table>
</div>

<script src="~/Areas/Admin/Scripts/MemberIntegral.js"></script>